﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace PairingMatrix.View
{
    public partial class PairingMatrixControl : UserControl
    {
        public PairingMatrixControl()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(PairingMatrixControl_Loaded);
        }

        void PairingMatrixControl_Loaded(object sender, RoutedEventArgs e)
        {
            for (var x = 100; x <= 940; x += 60)
            {
                    var line = new Line();
                    line.X1 = x;
                    line.X2 = x;
                    line.Y1 = 60;
                    line.Y2 = 970;
                line.Stroke = new SolidColorBrush(Colors.Black);
                LayoutRoot.Children.Add(line);
            }
            for (var y = 100; y <= 940; y += 60)
            {
                    var line = new Line();
                    line.X1 = 60;
                    line.X2 = 970;
                    line.Y1 = y;
                    line.Y2 = y;
                    line.Stroke = new SolidColorBrush(Colors.Black);
                    LayoutRoot.Children.Add(line);

            }
        }
    }
}
